//
//  UIView+LY.h
//  SelectCity
//
//  Created by liuyan on 2019/3/13.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (LY)

@property CGFloat height;
@property CGFloat width;

@property CGFloat top;
@property CGFloat left;

@property CGFloat bottom;
@property CGFloat right;

@property CGPoint origin;
@property CGSize size;

- (void)removeViewWithTag:(NSInteger)tag;

-(void)addShadow;
- (void)addShadowColor:(UIColor *)color;
-(void)addShadowColor:(UIColor *)color offset:(CGSize)offsert;

//颜色渐变
- (void)divergentColor;
- (void)colorgradient:(CGPoint)startpoint startColor:(UIColor *)startcolor endPoint:(CGPoint)endpoint endColor:(UIColor *)endcolor;

@end

